import request from '@/utils/request.js';

/**
 * 地址列表
 */
export const UserAddressList = (data) => {
	return request.post('Mini/ApiConnect/UserAddressList', data)
}

/**
 * 地址详情
 */
export const UserAddressInfo = (data) => {
	return request.post('Mini/ApiConnect/UserAddressInfo', data)
}

/**
 * 地址添加、编辑
 */
export const UserAddressDo = (data) => {
	return request.post('Mini/ApiConnect/UserAddressDo', data)
}

/**
 * 删除地址
 */
export const UserAddressDelete = (data) => {
	return request.post('Mini/ApiConnect/UserAddressDelete', data)
}

/**
 * 修改默认地址
 */
export const UserAddressDefault = (data) => {
	return request.post('Mini/ApiConnect/UserAddressDefault', data)
}

/**
 * 获取省市区
 */
export const UserRegionList = (data) => {
	return request.post('Mini/ApiConnect/UserRegionList', data)
}

/**
 * 获取门店列表
 */
export const getStoreList = (data) => {
	return request.post('Mini/ApiConnect/getStoreList', data)
}